/*
 * Copyright (c) 2023, 2024,yzc.cn All rights reserved.
 *
 */
package cn.yzc.controller;

import cn.yzc.client.GoodsRemoteClient;
import cn.yzc.entity.Result;
import cn.yzc.server.GoodsServer;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>Project: SpringColud - GoodsController</p>
 * <p>Powered by yzc On 2024-01-05 17:52:00</p>
 * <p>描述：<p>
 *
 * @author yzc [yzc0415@126.com]
 * @version 1.0
 * @since 17
 */
@RestController
public class GoodsController implements GoodsRemoteClient {
    @Autowired
    GoodsServer goodsServer;

    @Override
    public int update(String id, int num) {
      return goodsServer.update(id, num);

    }
}
